<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; minimum-scale=1.0; user-scalable=no;" />
<link rel="stylesheet" href="/statics/css/lrtk.css" />
<link type="text/css" href="/statics/css/style.css" rel="stylesheet"/>
<link rel="stylesheet" href="/statics/touchTouch/touchTouch.css" />
<script type="text/javascript" src="/statics/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="/statics/js/jquery.event.drag-1.5.min.js"></script>
<script type="text/javascript" src="/statics/js/jquery.touchSlider.js"></script>
<script type="text/javascript">
$(document).ready(function(){

	$(".main_visual").hover(function(){
		$("#btn_prev,#btn_next").fadeIn()
	},function(){
		$("#btn_prev,#btn_next").fadeOut()
	});
	
	$dragBln = false;
	
	$(".main_image").touchSlider({
		flexible : true,
		speed : 200,
		btn_prev : $("#btn_prev"),
		btn_next : $("#btn_next"),
		paging : $(".flicking_con a"),
		counter : function (e){
			$(".flicking_con a").removeClass("on").eq(e.current-1).addClass("on");
		}
	});
	
	$(".main_image").bind("mousedown", function() {
		$dragBln = false;
	});
	
	$(".main_image").bind("dragstart", function() {
		$dragBln = true;
	});
	
	$(".main_image a").click(function(){
		if($dragBln) {
			return false;
		}
	});
	
	timer = setInterval(function(){
		$("#btn_next").click();
	}, 5000);
	
	$(".main_visual").hover(function(){
		clearInterval(timer);
	},function(){
		timer = setInterval(function(){
			$("#btn_next").click();
		},5000);
	});
	
	$(".main_image").bind("touchstart",function(){
		clearInterval(timer);
	}).bind("touchend", function(){
		timer = setInterval(function(){
			$("#btn_next").click();
		}, 5000);
	});
	
});
</script>
<style>
.mod_qr {position: fixed; width:100%; bottom:0; z-index:9999}
.mod_qr .fixed_qr_close s {width: 20px;height: 20px;}
.s_s_close {background: url(/statics/img/close.png); position:absolute; right:0; z-index:9999; top:0; background-size:20px}
.down_show{ width:100%; height:60px; background:#f1f1f1; overflow:hidden}
.down_show span{ float:right; background:#096; padding:5px 10px; border-radius:3px; margin:20px 10px 0 0; font-size:14px; color:#fff}

.down_show dl{ overflow:hidden; margin:5px 0 0 10px; color:#999}
.down_show dl dt{ float:left; width:50px; background:#03C; margin-right:5px}
.down_show dl dt img{ float:left}
.down_show_h1{ color:#333; padding-top:3px; font-size:16px; padding:5px 0 8px;}
.down_show_h2{ color:#666; font-size:14px}
.box6{ margin-bottom:60px}
</style>
</head>
<body>
<!--个人信息-->
<div class="box box1" id="thumbs">
	<div class="box1_right"><a title="" href="http://qr.liantu.com/api.php?text=http://<?=$_SERVER['HTTP_HOST'].'/tmp/userCenter?cust_id='.$custData['cust_id'].'%26shareId='.md5($custData['cust_id'].$custData['cust_id'])?>"><img alt="" src="http://qr.liantu.com/api.php?text=http://<?=$_SERVER['HTTP_HOST'].'/tmp/userCenter?cust_id='.$custData['cust_id'].'%26shareId='.md5($custData['cust_id'].$custData['cust_id'])?>" width="60" height="60" /></a></div>
	<div class="box1_left">
        <a title="" href="<?=$custData['cust_img'] ? transUrl($custData['cust_img']) : '/statics/img/use.png'?>"><img alt="" src="<?=$custData['cust_img'] ? transUrl($custData['cust_img']) : '/statics/img/use.png'?>" width="70" height="70" /></a>
        <span>
        	<p><?=$custData['cust_realname']?> | <?=$custData['cust_jobname'] ?: '企业未填写'?></p>
            <p><?=$custData['company'] ?: '企业未填写'?></p>
        </span>
    </div>
</div>

<!--个性签名-->
<div class="box box2">
	<span class="qm1">个性签名</span>
    <span class="qm22"><?=$custData['cust_saying'] ?: '企业未填写'?></span>
</div>

<!--视频-->
<div class="box box2">
	<div style="text-align: center;">
	<?php $video = $custData['person_video'] ?: getSysConfig('adView');if($video){
			$matches = array();
			preg_match('/\S*v_show\/id_(\S*)\.html\S*/',$video,$matches);
			if(!$matches || !isset($matches[1])){
				$matches = array();
				preg_match('/\S*v_show\/id_(\S*)\.html\S*/',getSysConfig('adView'),$matches);
			}
		}?>
<iframe style="float:left" id="movie" height=100% width=100% src="http://player.youku.com/embed/<?=$matches && isset($matches[1]) ? $matches[1] : 'nodata'?>" frameborder=0 allowfullscreen></iframe>

</div>
</div>
<script type="text/javascript">document.getElementById("movie").style.height=document.getElementById("movie").scrollWidth*0.55+"px"</script>
<!--导航-->
<div class="box box3">
	
	<div class="box3_left">
    	<div class="box3_left_1">
            <span class="qm1"><i></i><a href="<?=$custData['company_location'] ? 'http://api.map.baidu.com/direction?origin=我的位置&destination='.$custData['company_location'].'&mode=driving&region=杭州&output=html&src=yunjia' : ''?>"><img src="/statics/img/dh.png" width="15" height="15">导航</a></span>
            <span class="qm2"><?=$custData['company_location'] ?: '企业未填写'?></span>
        </div>
        <div class="box3_left_2">
        <span class="qm1 qm11"><i></i><a href="tel:<?=$custData['showphone']?>"><img src="/statics/img/tel.png" width="15" height="15">电话</a></span>
        <span class="qm2"><a href="tel:<?=$custData['showphone']?>"><?=$custData['showphone'] ?: '企业未填写'?></a></span>
        </div>
    </div>
</div>

<!--企业简介-->
<div class="box box4">
	<h3><img src="/statics/img/home.png" width="18">企业简介</h3>
    <p><?=$custData['company_info'] ?: '企业未填写'?></p>
</div>

<!--滑动相册-->
<div class="main_visual">
	<div class="flicking_con">
		<?php if($custData['company_photo']){foreach(explode(',',$custData['company_photo']) AS $mk=>$vmx){?>
		<a href="#" <?=!$mk ? 'class="active"' : ''?>>></a>
		<?php }}else{?>
		<a href="#"></a>
		<?php }?>
	</div>
	<div class="main_image">
		<ul id="thumbs">
			<?php if($custData['company_photo']){foreach(explode(',',$custData['company_photo']) AS $vmx){?>
			<li><a href="<?=transUrl($vmx)?>"><span style="background:url('<?=transUrl($vmx)?>') center no-repeat; background-size:100%"></span></a></li>
			<?php }}else{?>
			<li><a href="/statics/images/comany.png"><span style="background:url('/statics/images/comany.png') center no-repeat; background-size:100%"></span></a></li>
            <?php }?>
		</ul>

	</div>
</div>
<?php if(I('get.appTag')){?>
<div class="box box6" style="background:green;color:white;margin-bottom:5px">
<a href="http://a.app.qq.com/o/simple.jsp?pkgname=com.example.lighting&g_f=991653" style="width:100%;text-align:center;color:white;margin-bottom:5px">下载</a>
</div>
<?php }?>
<!--版权-->
<div class="box box6">
	<p><img src="/statics/img/foot_logo.png" width="80"></p>
    <p>灯商云端 版权所有</p>
</div>

<script src="/statics/touchTouch/touchTouch.jquery.js"></script>
<script>
$(function(){
	$('#thumbs a').touchTouch();
});
</script>	
<!--添加下载链接开始-->
<div class="mod_qr">

    <div class="down_show">
	<span><a href="http://a.app.qq.com/o/simple.jsp?pkgname=com.example.lighting&g_f=991653">立即下载</a></span>
	<dl>
    	<dt><img src="/statics/img/logo1.png" width="50" height="50"></dt>
        <dd class="down_show_h1">灯商云</dd>
        <dd class="down_show_h2">中国最大的照明产业社交平台</dd>
    </dl>
</div>
    <a href="javascript:void(0);" id="close" class="fixed_qr_close"><s class="qricon s_s_close"></s></a>
</div>

<script>
$(function(){
	$(".fixed_qr_close").click(function(){
		$(".mod_qr").hide();
	})
})
</script>	
<!--添加下载链接结束-->
</body>
</html>
